/// <reference path="../base.js" />
/// <reference path="../3rdParty/Mootools-Core.js" />
/// <reference path="../utility/config.js" />

Panels.Config.Load = function()
{
  Utility.Config.Read();

  var table = $("ConfigTable");
  var html = "";

  for (var config in Utility.Config.Data)
  {
    if (!Utility.Config.Data.hasOwnProperty(config) || config == "Version")
      continue;

    html += "<tr>"
          + "<td>" + config + "</td>"
          + "<td><input type='text' value='" + Utility.Config.Data[config] + "' onBlur='Utility.Config.Set(\"" + config + "\", this.value);' /></tr>"
          + "</tr>";
  }

  table.set("html", html);
}

window.addEvent("domready", Panels.Config.Load);